package com.tmsps.ne4weixin.pay;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class WXPayDomain implements IWXPayDomain {

	@Override
	public void report(String domain, long elapsedTimeMillis, Exception ex) {
		log.warn("request {} by {} with {}",domain, elapsedTimeMillis, ex);
	}

	@Override
	public DomainInfo getDomain(WXPayConfig config) {
		IWXPayDomain.DomainInfo domainInfo = new DomainInfo(WXPayConstants.DOMAIN_API, true);
		return domainInfo;
	}

}
